package cn.huiyunche.bms.backend.enums;

/**
 * Created by Felix on 2017/7/6 9527.
 */
public enum PayeeStatusEnum {
    NO_PAY("10","未收款"),
    PART_OF_PAY("20","部分收款"),
    FINISH_PAY("30","收款完成");

    private final String value;
    private final String text;

    PayeeStatusEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public String getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value d waybill status enum.
     *
     * @param value the value
     * @return the d waybill status enum
     */
    public static PayeeStatusEnum getByValue(String value) {
        for (PayeeStatusEnum temp : PayeeStatusEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
